#include<iostream>
#include<map>
using namespace std;
int main()
{
multimap<float,char *> mm;
    mm.insert(pair<float,char *>(3.0f,"apple"));
    mm.insert(pair<float,char *>(1.5f,"banana"));
    mm.insert(pair<float,char *>(3.0f,"pear"));
    mm.insert(pair<float,char *>(2.1f,"orange"));
    
    multimap<float,char *>::iterator begin,end;
    end=mm.end();
    for(begin=mm.begin();begin!=end;begin++)
    {
    cout<<(*begin).second<<""<<(*begin).first<<"元/斤"<<endl;
    }
    cout<<endl;
return 0;
}
